<template>
  <div>
    <!--面包屑导航-->
    <el-breadcrumb separator-class="el-icon-arrow-right">
      <el-breadcrumb-item>管理员界面</el-breadcrumb-item>
      <el-breadcrumb-item>商品仓库</el-breadcrumb-item>
    </el-breadcrumb>

    <el-card>
      <!--搜索区域-->
      <el-row :gutter="20">
      </el-row>

      <el-table :data="facdata" border stripe class="table-box1">
        <el-table-column type="index"></el-table-column>
        <el-table-column label="工厂代码" prop="Fcode"></el-table-column>
        <el-table-column label="工厂名称" prop="Fname"></el-table-column>
      </el-table>
    </el-card>
    
  </div>
</template>

<script>
export default {
  data() {
    return {
      query: "",
      facdata: [],
    };
  },
  created() {
    this.geto_messagedata();
  },
  methods: {
    async geto_messagedata() {
      const { data: res } = await this.$http.post("Data/apis/factoryget", {
        params: this.query,
      });
      this.facdata = res;
      console.log(res);
    },

  },
};
</script>

<style>
.table-box1 {
  margin-top: 15px;
  font-size: 12px;
}
</style>